package com.video.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.video.dto.VlogDTO;
import com.video.result.ResultVO;
import com.video.entity.Vlogs;
import com.video.vo.HotVlog;
import com.video.vo.PublishVlogVo;
import com.video.vo.QueryVlogsVo;
import com.video.vo.VlogsVo;

import java.util.List;


/**
 * (Vlogs)表服务接口
 *
 * @author makejava
 * @since 2022-12-14 21:02:16
 */
public interface VlogsService extends IService<Vlogs> {

    ResultVO pageList(Integer pageNum, Integer pageSize, String keyword);

    ResultVO publishVlog(PublishVlogVo publishVlogVo);

    ResultVO changePrivateOrPublic(Long userId, Long vlogId, Integer type);

    ResultVO modifyTitle(VlogDTO vlogDTO);

    void unlikeVlog(Long userId, Long vlogId);

    void likeVlog(Long userId, Long vlogId);

    ResultVO modifyVlog(VlogDTO vlogDTO);

    QueryVlogsVo queryVlogAndLikeInfo(Long id, String token);
}

